<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* =====迭代器基本使用===== */
        const xiyou = ['唐僧','孙悟空','猪八戒','沙僧']

        // 使用for...of遍历数组
        for(let v of xiyou){
            console.log(v);
        }

        /* =====自定义遍历对象======*/
        const banji = {
            name:"终极一班",
            stus:[
                'xiaoming',
                'xiaoning',
                'xiaotian',
                'knight'
            ]
        }

        // 遍历这个对象
        
    </script>
</body>
</html>